import MessageBox from './packages/message-box';
// import { MessageBox } from 'mint-ui';
const components = [
	MessageBox
];

const install = function (Vue, opts = {}) {
	if (install.installed) return;
	components.map(component => {
		console.log(component.name)
		console.log('MessageBox', component)
		Vue.component(component.name, component);
		Vue[component.name] = Vue.prototype['$' + component.name] = component;
	});
};

if (typeof window !== 'undefined' && window.Vue) {
	install(window.Vue);
};

export default {
	version: 'beta',
	install,
	MessageBox
};
